﻿
using System.Drawing;
namespace Minecraft_2D.Blocks
{
    class BedRock : Bloc
    {
        #region Attributs
        #endregion

        #region Constructeur
        public BedRock(int percent)
            : base("BedRock", Properties.Resources.BedRock, true, percent)
        {
        }
        #endregion

        #region Proprietes
        #endregion

        #region Methodes
        public override TypeBloc OnNew(Block bloc)
        {
            if (bloc.Position.Y > Block.Map.Height - 5)
                return TypeBloc.BedRock;
            return bloc.Type;
        }
        #endregion
    }
}
